package com.example.springboot.bean;

import lombok.Data;

import java.io.Serializable;

/**
 * @author chenzhangkun
 * @ClassName Result
 * @description: TODO
 * @date 2024年10月30日
 */
@Data
public class Result<T> implements Serializable {
	private Integer code;
	private T data;
	private String message;

	public Result(Integer code, T data, String message) {
		this.code = code;
		this.data = data;
		this.message = message;
	}

	public Result() {
	}

	public Result(T data) {
		this.data = data;
		code=200;
		message="成功";
	}
}
